<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTableFeedback extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('feedback', function(Blueprint $table)
        {
            $table->increments('id')->comment('自增长');
            $table->integer('uid')->comment('用户ID，对应member表id');
            $table->string('type')->comment('反馈类型 1:程序BUG 2内容意见 3网络问题 4功能建议 5其他');
            $table->text('text')->comment('建议和反馈');
            $table->string('url',4096)->nullable()->comment('反馈图片');
            $table->unsignedInteger('create_time')->comment('发布时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('feedback');
    }
}
